# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=perl-net-ssl-expiredate
_pkgname=Net-SSL-ExpireDate
pkgver=1.21
pkgrel=5
pkgdesc='Obtain expiration date of certificate.'
arch=('any')
url='https://metacpan.org/pod/Net::SSL::ExpireDate'
license=('Perl')
depends=('perl' 'perl-class-accessor' 'perl-datetime'
         'perl-time-duration-parse' 'perl-universal-require')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/H/HI/HIROSE/$_pkgname-$pkgver.tar.gz")
sha512sums=('0b0f1f913e371eff0ad01a7d65070425753b1a26726e511f797cc67c2fec83854e11aa8e62fbf2c04aa0e578291a119b55f3455b14275a77b61cc9ae5a97b021')

build() {
  cd "$_pkgname-$pkgver"

  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
}

package() {
  cd "$_pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
}

